package BUCF;

import java.util.Comparator;

public class mycomparator implements Comparator<user_sim> {

	@Override
	public int compare(user_sim o1, user_sim o2) {
		double b1 = o1.getSim();
		double b2 = o2.getSim();
		if (b1 < b2) {
			return 1;
		} else if (b1 > b2) {
			return -1;
		}
		return 0;
	}
}
